package com.soft.sitegenerator.form;

import java.util.Collection;

import org.apache.struts.action.ActionForm;

import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.SimpleTemplate;
import com.soft.sitegenerator.business.hibernate.User;

public class SimpleTemplateEditForm extends ActionForm {

	/*
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Component component = new DataBaseComponent();

	private SimpleTemplate simpleTemplate = (SimpleTemplate) component
			.getBean("simpleTemplatesHib");

	private Collection users;

	Long idOwner = null;

	private Collection compositeTemplates;

	Long idCompositeTemplate = null;

	public SimpleTemplate getSimpleTemplate() {
		return simpleTemplate;
	}

	public void setSimpleTemplate(SimpleTemplate simpleTemplate) {
		this.simpleTemplate = simpleTemplate;
	}

	public boolean equals(Object arg0) {
		return simpleTemplate.equals(arg0);
	}

	public Long getId() {
		return simpleTemplate.getId();
	}

	public void setId(Long id) {
		simpleTemplate.setId(id);
	}

	public String getName() {
		return simpleTemplate.getName();
	}

	public void setName(String name) {
		simpleTemplate.setName(name);
	}

	public String getText() {
		return simpleTemplate.getText();
	}

	public void setText(String text) {
		simpleTemplate.setText(text);
	}

	public String getClassType() {
		return simpleTemplate.getClassType();
	}

	public void setClassType(String classType) {
		simpleTemplate.setClassType(classType);
	}

	public User getOwner() {
		return simpleTemplate.getOwner();
	}

	public void setOwner(User owner) {
		simpleTemplate.setOwner(owner);
	}

	public User getUserComplete() {
		return simpleTemplate.getUserComplete();
	}

	public void setUserComplete(User userComplete) {
		simpleTemplate.setUserComplete(userComplete);
	}

	public Collection getCompositeTemplates() {
		return compositeTemplates;
	}

	public void setCompositeTemplates(Collection compositeTemplates) {
		this.compositeTemplates = compositeTemplates;
	}

	public Long getIdCompositeTemplate() {
		return idCompositeTemplate;
	}

	public void setIdCompositeTemplate(Long idCompositeTemplate) {
		this.idCompositeTemplate = idCompositeTemplate;
	}

	public Long getIdOwner() {
		return idOwner;
	}

	public void setIdOwner(Long idOwner) {
		this.idOwner = idOwner;
	}

	public Collection getUsers() {
		return users;
	}

	public void setUsers(Collection users) {
		this.users = users;
	}

}